package fschmidt.util.mail.nomail;

import fschmidt.util.mail.MailFactory;
import fschmidt.util.mail.Mail;
import fschmidt.util.mail.SmtpServer;
import fschmidt.util.mail.Pop3Server;
import fschmidt.util.mail.MailAddress;
import fschmidt.util.mail.MailException;
import fschmidt.util.mail.javamail.MailImpl;


public final class MailFactoryImpl implements MailFactory {

	public Mail newMail() {
		return new MailImpl();
	}

	public Mail newMail(String rawInput) {
		return new MailImpl(rawInput);
	}

	public SmtpServer getSmtpServer(String machineName) {
		return new SmtpServerImpl();
	}

	public SmtpServer getSmtpServer(String machineName,String username,String password) {
		return new SmtpServerImpl();
	}

	public Pop3Server getPop3Server(String machineName,String username,String password) {
		return new Pop3ServerImpl();
	}

	public MailAddress parseAddress(String addr) throws MailException {
		return fschmidt.util.mail.javamail.MailFactoryImpl.doParseAddress(addr);
	}

	public boolean isSendingMail() {
		return false;
	}
}
